package cn.kpi.dao.lawassessment;

import cn.kpi.common.persistence.MyBatisDao;
import cn.kpi.entity.lawassessment.KpiWeight;
import cn.kpi.entity.lawassessment.LawKPItemEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@MyBatisDao
public interface LawKPIDao {

    public List<Map> GetBUKPIMapByTempIdAndColumns(@Param("tempid") Long tempid, @Param("columns") String columns, @Param("groupByColums") String groupByColums) throws Exception;

    public int InsertBUKPItemBatch(List<LawKPItemEntity> list) throws Exception;

    public int DeleteBUKPItem(@Param("templateid") Long templateid);

    public int InsertKPIWeight(List<KpiWeight> list) throws Exception;

    public int DeleteKPIWeight(@Param("templateid") int templateid);

    public List<KpiWeight> GetKPIWeights(@Param("templateid") int templateid);

    public List<Map> getRedScore(@Param("templateid") Long templateid);

    public List<Map> GetWeight(@Param("templateid") int templateid);

}
